import { createRouter, createWebHistory } from 'vue-router'
import SleepQualityPage from '@/views/SleepQualityPage.vue'
import BMIPage from '@/views/BMIPage.vue'
import SleepAgePage from '@/views/SleepAgePage.vue'
import DailyStepsPage from '@/views/DailyStepsPage.vue'
import SleepDisoderPage from '@/views/SleepDisoderPage.vue'
import StressLevelPage from '@/views/StressLevelPage.vue'
import ScreenPage from '@/views/ScreenPage.vue'

const routes = [
  {
    path: '/',
    redirect: '/screen'
  },
  {
    path: '/screen',
    component: ScreenPage
  },
  {
    path: '/SleepQualityPage',
    component: SleepQualityPage
  },
  {
    path: '/BMIPage',
    component: BMIPage
  },
  {
    path: '/SleepAgePage',
    component: SleepAgePage
  },
  {
    path: '/DailyStepsPage',
    component: DailyStepsPage
  },
  {
    path: '/StressLevelPage',
    component:StressLevelPage
  },
  {
    path: '/SleepDisoderPage',
    component: SleepDisoderPage
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
